package com.ruoyi.fund.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.utils.vo.PoCommon;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 资金记录对象 dms_fund_record
 * 
 * @author liuchuanfa
 * @date 2024-03-06
 */
public class DmsFundRecord extends PoCommon
{
    private static final long serialVersionUID = 1L;

    /** 资金所属方id（201厂端 101深圳经销商 102广州经销商） */
    @Excel(name = "资金所属方id")
    private Long fundOwnerId;

    /** 资金所属方名称（0厂端 1深圳经销商 2广州经销商） */
    @Excel(name = "资金所属方名称", readConverterExp = "0=厂端,1=深圳经销商,2=广州经销商")
    private Integer fundOwnerName;

    /** 资金所属方类型（0厂端 1经销商） */
    @Excel(name = "资金所属方类型", readConverterExp = "0=厂端,1=经销商")
    private Integer fundOwnerType;

    /** 消费金额 */
    @Excel(name = "消费金额")
    private Double consumerFund;

    /** 充值金额 */
    @Excel(name = "充值金额")
    private Double rechargeAmount;

    /** 消费人id */
    @Excel(name = "消费人id")
    private Long consumerId;

    /** 消费人名称 */
    @Excel(name = "消费人名称")
    private String consumerName;

    /** 消费时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "消费时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date consumerTime;

    /** 消费用途（0整车、1零件） */
    @Excel(name = "消费用途", readConverterExp = "0=整车,1=零件")
    private Integer consumerPlace;

    public void setFundOwnerId(Long fundOwnerId) 
    {
        this.fundOwnerId = fundOwnerId;
    }

    public Long getFundOwnerId() 
    {
        return fundOwnerId;
    }
    public void setFundOwnerName(Integer fundOwnerName) 
    {
        this.fundOwnerName = fundOwnerName;
    }

    public Integer getFundOwnerName() 
    {
        return fundOwnerName;
    }
    public void setFundOwnerType(Integer fundOwnerType) 
    {
        this.fundOwnerType = fundOwnerType;
    }

    public Integer getFundOwnerType() 
    {
        return fundOwnerType;
    }
    public void setConsumerFund(Double consumerFund)
    {
        this.consumerFund = consumerFund;
    }

    public Double getConsumerFund()
    {
        return consumerFund;
    }
    public void setRechargeAmount(Double rechargeAmount)
    {
        this.rechargeAmount = rechargeAmount;
    }

    public Double getRechargeAmount()
    {
        return rechargeAmount;
    }
    public void setConsumerId(Long consumerId) 
    {
        this.consumerId = consumerId;
    }

    public Long getConsumerId() 
    {
        return consumerId;
    }
    public void setConsumerName(String consumerName) 
    {
        this.consumerName = consumerName;
    }

    public String getConsumerName() 
    {
        return consumerName;
    }
    public void setConsumerTime(Date consumerTime) 
    {
        this.consumerTime = consumerTime;
    }

    public Date getConsumerTime() 
    {
        return consumerTime;
    }
    public void setConsumerPlace(Integer consumerPlace) 
    {
        this.consumerPlace = consumerPlace;
    }

    public Integer getConsumerPlace() 
    {
        return consumerPlace;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fundOwnerId", getFundOwnerId())
            .append("fundOwnerName", getFundOwnerName())
            .append("fundOwnerType", getFundOwnerType())
            .append("consumerFund", getConsumerFund())
            .append("rechargeAmount", getRechargeAmount())
            .append("consumerId", getConsumerId())
            .append("consumerName", getConsumerName())
            .append("consumerTime", getConsumerTime())
            .append("consumerPlace", getConsumerPlace())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createUserName", getCreateUserName())
            .append("updateUserName", getUpdateUserName())
            .append("version", getVersion())
            .append("deleteFlag", getDeleteFlag())
            .toString();
    }
}
